#include <iostream>
using namespace std;

struct reward_type
{
    int character = 0;
    int digit = 0;
    int signal = 0;
    int Uppercase_lowercase_letters = 0;
};

int main()
{
    string str;
    cin >> str;
    int count = 0;
    struct reward_type rt;

    if(str.size() <= 4) count += 5;
    else if(str.size() >= 5 && str.size() <= 7) count += 10;
    else if(str.size() >= 8) count += 25;

    int char_flag1 = 0, char_flag2 = 0;
    for(auto& e : str)
    {
        if(e >= 'a' && e <= 'z') char_flag1 = 1;
        if(e >= 'A' && e <= 'Z') char_flag2 = 1;
    }

    if((char_flag1 == 1 && char_flag2 == 0) || (char_flag1 == 0 && char_flag2 == 1))
    {
        count += 10;
        rt.character = 1;
    }
    else if(char_flag1 == 1 && char_flag2 == 1)
    {
        count += 20;
        rt.Uppercase_lowercase_letters = 1;
    }

    int digit_count = 0;
    int signal_count = 0;
    for(auto& e : str)
    {
        if(e >= '0' && e <= '9') digit_count++;
        if((e >= '!' && e <= '/') || (e >= ':' && e <= '@') || (e >= '[' && e <= '`') || (e >= '{' && e <= '~')) signal_count++;
    }

    if(digit_count != 0)
    {
        rt.digit = 1;
        if(digit_count == 1) count += 10;
        else if(digit_count > 1) count += 20;
    }

    if(signal_count != 0)
    {
        rt.signal = 1;
        if(signal_count == 1) count += 10;
        else if(signal_count > 1) count += 25;
    }

    if(rt.character == 1 && rt.digit == 1) count += 2;
    else if(rt.character == 1 && rt.digit == 1 && rt.signal == 1) count += 3;
    else if(rt.Uppercase_lowercase_letters == 1 && rt.digit == 1 && rt.signal == 1) count += 5;

    if(count >= 90)
        cout << "VERY_SECURE" << endl;
    else if(count >= 80 && count < 90)
        cout << "SECURE" << endl;
    else if(count >= 70 && count < 80)
        cout << "VERY_STRONG" << endl;
    else if(count >= 60 && count < 70)
        cout << "STRONG" << endl;
    else if(count >= 50 && count < 60)
        cout << "AVERAGE" << endl;
    else if(count >= 25 && count < 50)
        cout << "WEAK" << endl;
    else if(count >= 0 && count < 25)
        cout << "VERY_WEAK" << endl;

    return 0;
}